import request from '../../utils/request';
import { OnionUtils } from '../../utils/onion-utils';

//系统登陆
export const doLogin = formData => {
    return request({
        url: '/api/security/login',
        method: 'post',
        headers:{'Content-Type':'application/json', 'Build-Type':'formData'},
        data: formData
    });
};

//生成验证码
export const doGenCaptcha = paramData => {
    return request({
        url: "/api/security/genCaptchaCode",
        method: "post",
        headers: {'Content-Type':'application/json'},
        data: paramData
    });
}